#!/usr/bin/python
# -*- coding: utf-8 -*-



import os
import sys
import re
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import Qt
from Main import *
from echelle import *
from mesure import *
from gestion import *
from carto import *
from DAC.MesureDAC import Mesure
from DAC.ConfigWifiDAC import ConfigWifi
from DAC.ListWifiDAC import ListWifi
from DAC.PerfWifiDAC import PerfWifi

globals()["campagne"] = 0

class Page7(object):
    def __init__(self,session):
		self.session=session
		self.app = QtGui.QApplication(sys.argv)
		self.window=QtGui.QDialog()
                self.retour=0
                self.parametre={}
                self.config={}
		self.oldx = 0
		self.oldy = 0
                self.nbMesure=0



    def suivant(self):     
	final = Dessin3("")
	final.dessiner(self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))
        file=open("nbMesure",'a')
        file.write("\n"+str(self.nbMesure))
        file.close()
        
	self.window.close()
        obj8=Main()
        obj8.func8(self.config)


    def affich(self,param):
	self.setupUi(self.window)
	self.window.show()
        sys.exit(self.app.exec_())

    def precedent(self):
      
        if self.dicoiperftcp == {} and self.dicoiperfudp == {}:
        
         self.window.close()
         os.system("./Main.py 5")
        else:
         self.window.close()
         os.system("./Main.py 6")


    def calculCoord(self):
	ratio = calculEchelle(self.dictionnaire,"salle")

	self.ech = calculPoints(int(globals()["campagne"]["step"]))

	dess = Dessin("")
	dess.dessiner(self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))

	regex=re.compile('(.*)\..*')
	result_regex=regex.findall(self.dictionnaire["salle"]["url_plan"])	
	self.fichierpng=result_regex[0]

        objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
	self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
	self.plan.setVisible(True)


	self.miseAJour()

    def miseAJour(self):
	dess2 = Dessin("")
	
	if (self.choix_x.currentText() != '' and self.choix_y.currentText() != '' and self.choix_z.currentText() != ''):
		if (self.choix_x.currentText() != '...' and self.choix_y.currentText() != '...' and self.choix_z.currentText() != '...'):
			x = int(self.choix_x.currentText())
			y = int(self.choix_y.currentText())
			z = int(self.choix_z.currentText())

			for element in self.ech:
				if (x != 0 and y != 0):
					if ((element["x_step"] == x) and (element["y_step"] == y)):
						element["shape"] = "rond"
						dess2.dessiner(self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))					
						dess2.encours(self.dictionnaire["salle"]["url_plan"],self.ech)
						element["shape"] = "rien"
						self.oldx = x
						self.oldy = y

			objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
			self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
	else:
		self.oldx = 0
		self.oldy = 0

    def mesureEffectuee(self):
	dess3 = Dessin("")
	obj=Gestion("")	
        print globals()["campagne"]["env"], globals()["campagne"]["stattrafic"]
        if globals()["campagne"]["env"]=="1" and globals()["campagne"]["stattrafic"]=="1" :
	 if(self.oldx and self.oldy):
		for element in self.ech:
			if ((element["x_step"] == self.oldx) and (element["y_step"] == self.oldy)):
				mesure = Mesure()
				mesure.createByDico(self.dicoMesure())
				cw = ConfigWifi()
				lw = ListWifi()
				pw = PerfWifi()
				element["shape"] = "carre"
				res=obj.getIwc()
				print res
				cw.createByDico(res)
				element["signal"] = res["Signal level"]
				lw.createByListeDico(obj.getIwli())
                                if globals()["campagne"]["modeiperf"] == "tcp":
				 pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
                                if globals()["campagne"]["modeiperf"] == "udp":
                                 pw.createByListeDico(obj.getIperf(self.dicoiperfudp))
                                if globals()["campagne"]["modeiperf"] == "tcp&udp":
                                 pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
                                 pw.createByListeDico(obj.getIperf(self.dicoiperfudp))
				dess3.dessiner(	self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))					
				dess3.encours(self.dictionnaire["salle"]["url_plan"],self.ech)
				self.oldx = 0
				self.olfy = 0
				mesure.addConfigWifi(cw)
				mesure.addListWifi(lw)
				mesure.addPerfWifi(pw)
				
				mesure.insertToDb(globals()["campagne"]["id"])
	 objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
	 self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
		

        if globals()["campagne"]["env"]=="0" and globals()["campagne"]["stattrafic"]=="1" :
	 if(self.oldx and self.oldy):
		for element in self.ech:
			if ((element["x_step"] == self.oldx) and (element["y_step"] == self.oldy)):
				mesure = Mesure()
				mesure.createByDico(self.dicoMesure())
				cw = ConfigWifi()
				#lw = ListWifi()
				pw = PerfWifi()
				element["shape"] = "carre"
				res=obj.getIwc()
				print res
				cw.createByDico(res)
				element["signal"] = res["Signal level"]
				#lw.createByListeDico(obj.getIwli())
                                if globals()["campagne"]["modeiperf"] == "tcp":
				 pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
                                if globals()["campagne"]["modeiperf"] == "udp":
                                 pw.createByListeDico(obj.getIperf(self.dicoiperfudp))
                                if globals()["campagne"]["modeiperf"] == "tcp&udp":
				 pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
                                 pw.createByListeDico(obj.getIperf(self.dicoiperfudp))
				dess3.dessiner(	self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))					
				dess3.encours(self.dictionnaire["salle"]["url_plan"],self.ech)
				self.oldx = 0
				self.olfy = 0
				mesure.addConfigWifi(cw)
				#mesure.addListWifi(lw)
				mesure.addPerfWifi(pw)
				
				mesure.insertToDb(globals()["campagne"]["id"])
	 objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
	 self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
		

        if globals()["campagne"]["env"]=="1" and globals()["campagne"]["stattrafic"]=="0" :
	 if(self.oldx and self.oldy):
		for element in self.ech:
			if ((element["x_step"] == self.oldx) and (element["y_step"] == self.oldy)):
				mesure = Mesure()
				mesure.createByDico(self.dicoMesure())
				cw = ConfigWifi()
				lw = ListWifi()
				#pw = PerfWifi()
				element["shape"] = "carre"
				res=obj.getIwc()
				print res
				cw.createByDico(res)
				element["signal"] = res["Signal level"]
				lw.createByListeDico(obj.getIwli())
				#pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
				dess3.dessiner(	self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))					
				dess3.encours(self.dictionnaire["salle"]["url_plan"],self.ech)
				self.oldx = 0
				self.olfy = 0
				mesure.addConfigWifi(cw)
				mesure.addListWifi(lw)
				#mesure.addPerfWifi(pw)
				
				mesure.insertToDb(globals()["campagne"]["id"])
	 objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
	 self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
		

        if globals()["campagne"]["env"]=="0" and globals()["campagne"]["stattrafic"]=="0" :
	 if(self.oldx and self.oldy):
		for element in self.ech:
			if ((element["x_step"] == self.oldx) and (element["y_step"] == self.oldy)):
				mesure = Mesure()
				mesure.createByDico(self.dicoMesure())
				cw = ConfigWifi()
				#lw = ListWifi()
				#pw = PerfWifi()
				element["shape"] = "carre"
				res=obj.getIwc()
				print res
				cw.createByDico(res)
				element["signal"] = res["Signal level"]
				#lw.createByListeDico(obj.getIwli())
				#pw.createByListeDico(obj.getIperf(self.dicoiperftcp))
				dess3.dessiner(	self.dictionnaire["salle"]["url_plan"],self.ech,int(globals()["campagne"]["step"]))					
				dess3.encours(self.dictionnaire["salle"]["url_plan"],self.ech)
				self.oldx = 0
				self.olfy = 0
				mesure.addConfigWifi(cw)
				#mesure.addListWifi(lw)
				#mesure.addPerfWifi(pw)
				
				mesure.insertToDb(globals()["campagne"]["id"])

	 objImg = QtGui.QImage(self.fichierpng+str("_mesure.png"))
	 self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.SmoothTransformation)))
        self.nbMesure=self.nbMesure+1
		
    def dicoMesure(self):
		dico = {}
		dico["description"] 	=  self.lineEdit_duree_mesure_vide.displayText()
		dico["x"] 		=  self.choix_x.currentText()
		dico["y"] 		=  self.choix_y.currentText()
		dico["z"] 		=  self.choix_z.currentText()
		dico["time"] 		=  self.textEdit_descr_ref_rel_vide.toPlainText()
		return dico
	
    def setupUi(self, Dialog):
        os.system("echo>nbMesure")
        self.filename = ""
        dicosalle={}
        dicobatiment={}
        dicocampagne={}
	self.dicoiperftcp={}
        self.dicoiperfudp={}
        
	expr=re.compile('[a-zA-Z]')        
        fichier=open('dicosalle','r')
        for line in fichier.readlines():
            if expr.findall(line):
                dicosalle[line.split(':')[0].split('\n')[0]]=line.split(':')[1].split('\n')[0]
        fichier.close()
	
	       
        fichier=open('dicocampagne','r')
        for line in fichier.readlines():
            if expr.findall(line):
                dicocampagne[line.split(':')[0].split('\n')[0]]=line.split(':')[1].split('\n')[0]
        fichier.close()
	globals()["campagne"] = dicocampagne

	fichier=open('dicoiperftcp','r')
        for line in fichier.readlines():
            if expr.findall(line):
                self.dicoiperftcp[line.split(':')[0].split('\n')[0]]=line.split(':')[1].split('\n')[0]
        fichier.close()

	fichier=open('dicoiperfudp','r')
        for line in fichier.readlines():
            if expr.findall(line):
                self.dicoiperfudp[line.split(':')[0].split('\n')[0]]=line.split(':')[1].split('\n')[0]
        fichier.close()
	

        fichier=open('dicobatiment','r')
        for line2 in fichier.readlines():
            if expr.findall(line2):
                dicobatiment[line2.split(':')[0].split('\n')[0]]=line2.split(':')[1].split('\n')[0]
        fichier.close()
        dicodico={'batiment':dicobatiment,'salle':dicosalle}
        fichier.close()       

	self.dictionnaire = dicodico

        Dialog.setObjectName("Dialog")
        Dialog.resize(1270, 721)

        self.lineEdit_mesure = QtGui.QLineEdit(Dialog)
        self.lineEdit_mesure.setGeometry(QtCore.QRect(440, 20, 391, 65))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(32)
        font.setWeight(50)
        font.setBold(False)
        self.lineEdit_mesure.setFont(font)
        self.lineEdit_mesure.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_mesure.setReadOnly(True)
        self.lineEdit_mesure.setObjectName("lineEdit_mesure")

        self.lineEdit_descr_ref_rel = QtGui.QLineEdit(Dialog)
        self.lineEdit_descr_ref_rel.setGeometry(QtCore.QRect(20, 140, 601, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(11)
        self.lineEdit_descr_ref_rel.setFont(font)
        self.lineEdit_descr_ref_rel.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_descr_ref_rel.setReadOnly(True)
        self.lineEdit_descr_ref_rel.setObjectName("lineEdit_descr_ref_rel")

        self.lineEdit_duree_mesure_vide = QtGui.QLineEdit(Dialog)
        self.lineEdit_duree_mesure_vide.setGeometry(QtCore.QRect(350, 550, 71, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        self.lineEdit_duree_mesure_vide.setFont(font)
        self.lineEdit_duree_mesure_vide.setObjectName("lineEdit_duree_mesure_vide")

        self.lineEdit_coordonnees_mesure = QtGui.QLineEdit(Dialog)
        self.lineEdit_coordonnees_mesure.setGeometry(QtCore.QRect(20, 330, 371, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        self.lineEdit_coordonnees_mesure.setFont(font)
        self.lineEdit_coordonnees_mesure.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_coordonnees_mesure.setReadOnly(True)
        self.lineEdit_coordonnees_mesure.setObjectName("lineEdit_coordonnees_mesure")
        self.lineEdit_duree_mesure = QtGui.QLineEdit(Dialog)
        self.lineEdit_duree_mesure.setGeometry(QtCore.QRect(20, 550, 281, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        font.setItalic(False)
        self.lineEdit_duree_mesure.setFont(font)
        self.lineEdit_duree_mesure.setAutoFillBackground(False)
        self.lineEdit_duree_mesure.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_duree_mesure.setReadOnly(True)
        self.lineEdit_duree_mesure.setObjectName("lineEdit_duree_mesure")
        self.textEdit_descr_ref_rel_vide = QtGui.QTextEdit(Dialog)
        self.textEdit_descr_ref_rel_vide.setGeometry(QtCore.QRect(20, 180, 601, 111))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.textEdit_descr_ref_rel_vide.setFont(font)
        self.textEdit_descr_ref_rel_vide.setObjectName("textEdit_descr_ref_rel_vide")
        self.pushButton_suivant = QtGui.QPushButton(Dialog)
        self.pushButton_suivant.setGeometry(QtCore.QRect(1080, 650, 171, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.pushButton_suivant.setFont(font)
        self.pushButton_suivant.setObjectName("pushButton_suivant")
        self.pushButton_annuler = QtGui.QPushButton(Dialog)
        self.pushButton_annuler.setGeometry(QtCore.QRect(740, 650, 171, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.pushButton_annuler.setFont(font)
        self.pushButton_annuler.setObjectName("pushButton_annuler")
        self.lineEdit_x = QtGui.QLineEdit(Dialog)
        self.lineEdit_x.setGeometry(QtCore.QRect(20, 380, 41, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        self.lineEdit_x.setFont(font)
        self.lineEdit_x.setReadOnly(True)
        self.lineEdit_x.setObjectName("lineEdit_x")
        self.lineEdit_y = QtGui.QLineEdit(Dialog)
        self.lineEdit_y.setGeometry(QtCore.QRect(20, 430, 41, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        self.lineEdit_y.setFont(font)
        self.lineEdit_y.setReadOnly(True)
        self.lineEdit_y.setObjectName("lineEdit_y")
        self.lineEdit_z = QtGui.QLineEdit(Dialog)
        self.lineEdit_z.setGeometry(QtCore.QRect(20, 480, 41, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(14)
        self.lineEdit_z.setFont(font)
        self.lineEdit_z.setReadOnly(True)
        self.lineEdit_z.setObjectName("lineEdit_z")

        self.pushButton_precedent = QtGui.QPushButton(Dialog)
        self.pushButton_precedent.setGeometry(QtCore.QRect(910, 650, 171, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.pushButton_precedent.setFont(font)
        self.pushButton_precedent.setObjectName("pushButton_precedent")

        self.textEdit_descr_info = QtGui.QTextEdit(Dialog)
        self.textEdit_descr_info.setGeometry(QtCore.QRect(180, 400, 441, 121))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        self.textEdit_descr_info.setFont(font)
        self.textEdit_descr_info.setReadOnly(True)
        self.textEdit_descr_info.setObjectName("textEdit_descr_info")

        #Lancer la mesure
        self.pushButton_Lancer_Mesure = QtGui.QPushButton(Dialog)
        self.pushButton_Lancer_Mesure.setGeometry(QtCore.QRect(350, 650, 191, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.pushButton_Lancer_Mesure.setFont(font)
        self.pushButton_Lancer_Mesure.setObjectName("pushButton_Lancer_Mesure")
        
	#Passer la mesure
        self.pushButton_Passer_Mesure = QtGui.QPushButton(Dialog)
        self.pushButton_Passer_Mesure.setGeometry(QtCore.QRect(150, 650, 191, 41))
        font = QtGui.QFont()
        font.setFamily("Bitstream Charter")
        font.setPointSize(12)
        self.pushButton_Passer_Mesure.setFont(font)
        self.pushButton_Passer_Mesure.setObjectName("pushButton_Passer_Mesure")


        #Combo Box pour x
        self.choix_x = QtGui.QComboBox(Dialog)
        self.choix_x.setGeometry(QtCore.QRect(70, 380, 67, 41))
        font = QtGui.QFont()	
        font.setPointSize(14)
        font.setFamily("Bitstream Charter")
        self.choix_x.setFont(font)
        self.choix_x.setObjectName("choix_x")

        #Combo Box pour y
        self.choix_y = QtGui.QComboBox(Dialog)
        self.choix_y.setGeometry(QtCore.QRect(70, 430, 67, 41))
        font = QtGui.QFont()	
        font.setPointSize(14)
        font.setFamily("Bitstream Charter")
        self.choix_y.setFont(font)
        self.choix_y.setObjectName("choix_y")

        #Combo Box pour z
        self.choix_z = QtGui.QComboBox(Dialog)
        self.choix_z.setGeometry(QtCore.QRect(70, 480, 67, 41))
        font = QtGui.QFont()	
        font.setPointSize(14)
        font.setFamily("Bitstream Charter")
        self.choix_z.setFont(font)
        self.choix_z.setObjectName("choix_z")

	if(int(dicocampagne["automatique"]) and not int(dicocampagne["manuel"])):
		print "automatique"
		self.choix_x.setEditable(False)
		self.choix_y.setEditable(False)
		self.choix_z.setEditable(False)

        #Widget pour la partie droite
        self.groupe_image = QtGui.QWidget(Dialog)
        self.groupe_image.setGeometry(QtCore.QRect(670,130,571,511))
        self.groupe_image.setObjectName("groupe_image")

        #cadre autour du plan
        self.frame = QtGui.QFrame(self.groupe_image)
        self.frame.setGeometry(QtCore.QRect(10, 10, 551, 481))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")       
	
        # Widget pour les coordonnées
	self.repere_coord = QtGui.QWidget(self.frame)
        self.repere_coord.setGeometry(QtCore.QRect(10,10,551,481))
        self.repere_coord.setObjectName("repere_coord")

        # label qui contiendra le plan
        self.plan = QtGui.QLabel(self.repere_coord)

	# label qui contiendra le repère
	self.repere = QtGui.QLabel(self.repere_coord)

        # plan de la salle
        objImg = QtGui.QImage(dicosalle['url_plan'])
	self.plan.setPixmap(QtGui.QPixmap.fromImage(objImg.scaled(530,460,Qt.KeepAspectRatio,Qt.FastTransformation)))
	self.calculCoord()

	# repere
	self.objImgRepere = QtGui.QImage("../images/pointeur1.png")
	a = self.objImgRepere.height()
	b = self.objImgRepere.width()
	self.repere.setGeometry(QtCore.QRect(0,0,b,a))
        self.repere.setPixmap(QtGui.QPixmap.fromImage(self.objImgRepere))

	self.choix_x.addItem("...")
	self.choix_y.addItem("...")
	self.choix_z.addItem("...")

	for element in self.ech:
		if (self.choix_x.findText(str(element["x_step"]),Qt.MatchExactly) == -1):
			self.choix_x.addItem(str(element["x_step"]))
		if (self.choix_y.findText(str(element["y_step"]),Qt.MatchExactly) == -1):
			self.choix_y.addItem(str(element["y_step"]))
	self.choix_z.addItem("0")


        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.pushButton_annuler, QtCore.SIGNAL("clicked()"), Dialog.accept)
        QtCore.QObject.connect(self.pushButton_precedent, QtCore.SIGNAL("clicked()"),self.precedent)
        QtCore.QObject.connect(self.pushButton_suivant, QtCore.SIGNAL("clicked()"), self.suivant)
        QtCore.QObject.connect(self.pushButton_Lancer_Mesure, QtCore.SIGNAL("clicked()"), self.mesureEffectuee)
	QtCore.QObject.connect(self.choix_x, QtCore.SIGNAL("activated(QString)"), self.miseAJour)
	QtCore.QObject.connect(self.choix_y, QtCore.SIGNAL("activated(QString)"), self.miseAJour)
	QtCore.QObject.connect(self.choix_z, QtCore.SIGNAL("activated(QString)"), self.miseAJour)

        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_mesure.setText(QtGui.QApplication.translate("Dialog", "MESURE", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_descr_ref_rel.setText(QtGui.QApplication.translate("Dialog", "Description de la situation géographique de la référence relative :", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_coordonnees_mesure.setText(QtGui.QApplication.translate("Dialog", "Coordonnées de la mesure :", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_duree_mesure.setText(QtGui.QApplication.translate("Dialog", "Durée de la mesure :", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_suivant.setText(QtGui.QApplication.translate("Dialog", "Suivant >>", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_annuler.setText(QtGui.QApplication.translate("Dialog", "Annuler", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_x.setText(QtGui.QApplication.translate("Dialog", "X :", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_y.setText(QtGui.QApplication.translate("Dialog", "Y :", None, QtGui.QApplication.UnicodeUTF8))
        self.lineEdit_z.setText(QtGui.QApplication.translate("Dialog", "Z :", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_Lancer_Mesure.setText(QtGui.QApplication.translate("Dialog", "Lancer la mesure", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_Passer_Mesure.setText(QtGui.QApplication.translate("Dialog", "Passer la mesure", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_precedent.setText(QtGui.QApplication.translate("Dialog", "<< Précédent", None, QtGui.QApplication.UnicodeUTF8))
        self.textEdit_descr_info.setHtml(QtGui.QApplication.translate("Dialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Bitstream Charter\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'DejaVu Sans\';\"><span style=\" font-family:\'Sans Serif\'; font-size:14pt;\">L\'utilisateur se déplacera step par step en partant de la référence relative.</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))


